﻿using UnityEngine;

namespace CommonLib
{
	public class ReferenceListener : MonoBehaviour
	{
		public AssetFile DependFile => m_File;
		private AssetFile m_File;
		public void Init(AssetFile file) {
			m_File = file;
			m_File.RfAdd(this);
		}

		private void OnDestroy()
		{
			m_File?.RfRemove(this);
		}

	}
}

